


<%@page import="helper.course" contentType="text/html" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  	<title>Announcements</title>
  	<meta name="description" content="announcement notification creation" />
  	<meta name="keywords" content="announcement, create, administrator" />
	

	<!-- stylesheets -->
  	<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
  	<link rel="stylesheet" href="css/slide.css" type="text/css" media="screen" />

	<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
	<!-- Sliding effect -->
	<script src="js/slide.js" type="text/javascript"></script>

</head>

<body>
    
    <%
    String courses[]=course.getCourseIds();
    int i=0;String s="";
    while(i<courses.length)
               {s=s+"<option value='"+courses[i]+"'>"+courses[i]+"</option>";i++;}
    %>
<!-- Panel -->
<div id="toppanel">
	<div id="panel">
		<div class="content clearfix">
			
			<div class="left right" >			
				<!-- Register Form -->
				<form action="addtoannouncebean" method="post">
				<table width="100%">
                                    	<tr ><td style="color: yellow">subject:</td><td>  <input type="text" name="subject" id="subject"  /></td><td></td></tr>
					<tr><td style="color: yellow">description:</td><td> <textarea  name="description" rows="5" cols="40" ></textarea></td><td></td></tr>
					<tr><td style="color: yellow">announce as :<select name="type">
					                        <option value="public">site news(guests)</option>
								<option value="private">to users only</option>
                                                </select></td>
                                        <td style="color: yellow">about :<select name="catagory">
					                        <option value="exam">exams</option>
								<option value="course">course</option>
                                                                <option value="other">others</option>
                                                             </select> 
						</td>
						<td style="color: yellow">To<select name="tousers" id="tocourse"><%=s%><option value="all">all users</option>
										 </select>
						</td>
					</tr>
					
					
                                        <tr><td></td><td><input type="submit" name="submit" value="create" class="bt_register" /></td><td></td></tr>
					</table>
				</form>
			</div>
		</div>
</div> <!-- /login -->	

	<!-- The tab on top -->	
	<div class="tab">
		<ul class="login">
			<li class="left"></li>
				<li id="toggle">
                                    <a id="open" class="open" href="#">CREATE NEW</a>
				<a id="close" style="display: none;" class="close" href="#">Close Panel</a>			
			</li>
			<li class="right"></li>
		</ul> 
	</div> 
	
</div> 

<div style="display: block; margin-top:20px">
<h1 style="width:90%;">Announcements</h1>

<div>
    <jsp:include page="showannouncements.jsp" flush="false"></jsp:include>
    
</div>

</div>

    
</body>
</html>
